<template>
<div>
    <div class="bottom-nav">
    <div class="nav-item" @click="goToHome">
      <span>首页</span>
    </div>
    <div class="nav-item">
      <span @click="goToFindHouse">找房</span>
    </div>
    <div class="nav-item" @click="goToInfo">
      <span>资讯</span>
    </div>
    <div class="nav-item" @click="goToProfile">
      <span>我的</span>
    </div>
  </div>

</div>

</template>

<script>
export default {
  methods: {
    goToFindHouse() { 
      this.$router.push('/houseList')
    }
  }
}

</script>


<style>
.bottom-nav {
  width: 375px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-item img {
  width: 24px;
  height: 24px;
}

.nav-item span {
  font-size: 12px;
  margin-top: 4px;
}
</style>